#ifndef EXPERIMENTPRO_H
#define EXPERIMENTPRO_H
#include <QPointF>
#include <QVector>
#include <QObject>
#include <QQmlContext>
#include <dbHelper.h>
#include <CommonHelper.h>
#include <QElapsedTimer>
#include <loghelper.h>
#include <eqptinfo.h>
#include <tcpclient.h>
#include <QMap>
#include <wlkOperator.h>
#include "saveExpInfo.h"
#include <SerialPortClient.h>

class ExperimentPro : public QObject
{
    Q_OBJECT
public:
    ExperimentPro();
    ~ExperimentPro();
public:
    Q_INVOKABLE QVector<QVector<QPointF>> getChartInfo(QString,QString,QString);//pos(A1 A2) FAM VIC ROX CY5
    Q_INVOKABLE QMap<QString, QVariantList> getBarChartInfo(QString,QString,QString);
    Q_INVOKABLE QVariantMap getOtherInfo(QString);
    Q_INVOKABLE void stopExperiment(QString);
    Q_INVOKABLE QVariantMap getAllTempInfo(QString);
    Q_INVOKABLE QVariantMap getAmplInfo(QString);
    Q_INVOKABLE QVariantList getAmplStep(QString);
    Q_INVOKABLE int checkIsCollect(QString);
    Q_INVOKABLE QString getExperimentErrorMsg(QString);
private:
    CommonHelper *common;
};

#endif // EXPERIMENTPRO_H
